package pattern;

/*
 *
 * @author changfei
 * @date  2023/11/28 11:35
 * @description 饿汉式
 */
public class HungrySingleton {

    private static HungrySingleton singleton=new HungrySingleton();

    /**
     * 构造私有化方法
     */
    private HungrySingleton() {
    }

    public static HungrySingleton getInstance(){
        return singleton;
    }
}
